<?php
    $block_title =     $this->vote_info->thread_name.($this->vote_info->phase_name!=""?" - ".$this->vote_info->phase_name:"");

    if(is_array($this->voted_list) && count($this->voted_list)>0){
    $i = 1;
    foreach($this->voted_list as $node){

        $img="http://img.tamtay.vn" . $node->thumbnail;
        $star = 0;
        if(isset($node->rate_value))
            $star=ceil($node->rate_value/20);
        
        //$web_vote=round($o->rate_value*$o->vote_web_count, 0);
        $web_vote = $node->vote_web_count;
        if ($this->total_vote_web==0){
            $web_percent=0;
        }
        else{
            $web_percent=round($web_vote/$this->total_vote_web, 4)*100;
        }
        if ($this->total_vote_sms==0){
            $sms_percent=0;
        }
        else{
            $sms_percent=round($node->vote_sms_count/$this->total_vote_sms, 4)*100;
        }
        $t=$web_percent + $sms_percent;
    ?>
        <!--Danh sach thi sinh:-->
        <li class="item_member">
            
            <div class="float-left image">
                <a href="http://photo.tamtay.vn/photo/view/<?php echo $node->aid;?>" title="<?php echo $node->album_name;?>"><img src="<?php echo $this->layout()->spath; ?>/images/spacer.gif" style="background-image: url('<?php echo EVENT_IMG_SERVER."/".$node->thumbnail;?>'); background-position: center; background-repeat: no-repeat;" /></a>
                
            </div>
            <div class="float-left name">
                <p><a href="http://photo.tamtay.vn/photo/view/<?php echo $node->aid;?>" target="_blank"><?php echo $node->album_name;?></a></p>
                <p><img src="http://img.tamtay.vn/images/stars<?php echo $star; ?>.gif" /></p>
                <p class="soantin">Soạn tin: &nbsp; <span class="maso"><?php echo $this->vote_info->sms_command_code;?>&nbsp;&nbsp;<?php echo $node->sbd; ?></span> &nbsp; gửi &nbsp; <span class="gui"><?php echo $this->vote_info->sms_destination1;?></span></p>
            </div>                        
            <div class="float-left view">
                <?php echo $node->view_count; ?>
            </div>
            <div class="float-left sms">
                <?php echo $sms_percent;?>%
            </div>
            <div class="float-left web">
                <?php echo $web_percent;?>%
            </div>
            <div class="float-left total">
                <?php echo $t;?>%
            </div>
            <div class="clear"></div>
        </li>
    <?php
        }
    ?>
    </ul>
<?php } ?>